#include <iostream>
#include <string>
#include "tcpclient.h"
#ifdef WIN
#include "DumpFile.h"
#endif
#include "debug.cpp"
#include "frame_protocol.h"
using namespace uv;
typedef void (*OnPacketFunction)(const NetPacket* packet, const BusinessPacket * business_packet, const unsigned char* buf, const int datalen, TCPClient* client);
struct CMD_Handler
{
    uint16_t cmd;
    OnPacketFunction func;
};